source("Jul01.R",local=TRUE)
## Loading required package: boot
## 
## Attaching package: 'boot'
## 
## The following object is masked _by_ '.GlobalEnv':
## 
##     cd4
## 
## 
## Attaching package: 'psych'
## 
## The following object is masked from 'package:boot':
## 
##     logit
## 
## Loading required package: rJava
## Loading required package: xlsxjars
## 
## Attaching package: 'prettyR'
## 
## The following objects are masked from 'package:psych':
## 
##     describe, skew
## 
## 
## Attaching package: 'data.table'
## 
## The following object is masked from 'package:pastecs':
## 
##     last
## 
## Frequencies for research 
##         1    2   NA
##        57   14    0
## %    80.3 19.7    0 
## %!NA 80.3 19.7

## 
## Frequencies for group 
##         2    1   NA
##        59   12    0
## %    83.1 16.9    0 
## %!NA 83.1 16.9

## 
## Frequencies for kn_protect_ng1 
##         2    1   NA
##        50    9   12
## %    70.4 12.7 16.9 
## %!NA 84.7 15.3

## 
## Frequencies for kn_protect_ng2 
##         2    1   NA
##        51    8   12
## %    71.8 11.3 16.9 
## %!NA 86.4 13.6

## 
## Frequencies for kn_protect_ng3 
##         2    1   NA
##        51    8   12
## %    71.8 11.3 16.9 
## %!NA 86.4 13.6

## 
## Frequencies for kn_protect_ng4 
##         2    1   NA
##        51    8   12
## %    71.8 11.3 16.9 
## %!NA 86.4 13.6

## 
## Frequencies for kn_protect_ng5 
##         2    1   NA
##        49   10   12
## %      69 14.1 16.9 
## %!NA 83.1 16.9

## 
## Frequencies for kn_protect_g_i1 
##         2    1   NA
##        11    1   59
## %    15.5  1.4 83.1 
## %!NA 91.7  8.3

## 
## Frequencies for kn_protect_g_i2 
##         2    1   NA
##        11    1   59
## %    15.5  1.4 83.1 
## %!NA 91.7  8.3

## 
## Frequencies for kn_protect_g_i3 
##         2    1   NA
##        11    1   59
## %    15.5  1.4 83.1 
## %!NA 91.7  8.3

## 
## Frequencies for kn_protect_g_i4 
##         2    1   NA
##         9    3   59
## %    12.7  4.2 83.1 
## %!NA   75   25

## 
## Frequencies for kn_protect_g_i5 
##         2   NA
##        12   59
## %    16.9 83.1 
## %!NA  100

## 
## Frequencies for kn_protect_g_o1 
##         2    1   NA
##        11    1   59
## %    15.5  1.4 83.1 
## %!NA 91.7  8.3

## 
## Frequencies for kn_protect_g_o2 
##         2    1   NA
##        10    2   59
## %    14.1  2.8 83.1 
## %!NA 83.3 16.7

## 
## Frequencies for kn_protect_g_o3 
##         2    1   NA
##         9    3   59
## %    12.7  4.2 83.1 
## %!NA   75   25

## 
## Frequencies for kn_protect_g_o4 
##         2    1   NA
##         8    4   59
## %    11.3  5.6 83.1 
## %!NA 66.7 33.3

## 
## Frequencies for kn_protect_g_o5 
##         2    1   NA
##        11    1   59
## %    15.5  1.4 83.1 
## %!NA 91.7  8.3

## 
## Frequencies for degree 
##         1    2    3   NA
##        37   20   14    0
## %    52.1 28.2 19.7    0 
## %!NA 52.1 28.2 19.7

## 
## Frequencies for institution 
##                                                            Purdue University                                                     Columbia University                                                                  Purdue                                               Arizona State University                                                         Brown University                                                                    UIUC                      American International University-Bangladesh(AIUB)                                                arizona state university                             Columbia University in the City of New York                                                             ECE, Purdue                               Faculty of Sciences of Monastir - Tunisia                                                                    FSU`                                                       GBPUAT, Pantnagar     Geethanjali college of engineering and technology   hyderabad india                                                       Guilan University                                                              IIT Kanpur                                                                Imperial Indian Institute of Engineering Science and Technology (IIEST), Sbibpur                                                                IPPT PAN          JSPMs Rajarshi Shahu College of Engineering, Pune, Maharashtra                                     Key Lab of Quantum Information, CAS                                                       Lehigh University                                          Lovely Professional University                                                                     lsu                                       National Spanish Research Council         NED University of Engineering and Technology, Karachi Pakistan.                                                                   NMIMS                                                 Northwestern University                                           Pennsylvania State University                                                       Purdue university                                                       sastra university                                       The University of Texas at Austin                                                 Universidad de Zaragoza                                        Universidad Tecnológica Nacional                                                              University                                                   University of Alberta                                                     UNIVERSITY OF GHANA                                                  University of Illinois            University of Illinois Working on obtaining Bachelors Degree                                                    University of Malaga                                                   University of Reading                                                   University of Seville                                                  University of Waterloo                                                    University of Zagreb                                                     Universityof Rijeka                                                               UT Austin                                                          VIT University                                                          VIT UNIVERSITY                                      Washington University in St. Louis                                                                     XTU                                                                      NA
##        13    4    3    2    2    2    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1
## %    18.3  5.6  4.2  2.8  2.8  2.8  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4 
## %!NA 18.6  5.7  4.3  2.9  2.9  2.9  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4

## 
## Frequencies for resp_country 
##                           USA                    India                       US                    Spain            United States United States of America                   Canada                    China                  Croatia                    india                    INDIA                Argentina               Bangladesh                    GHANA                     Iran                    Italy       Karachi, Pakistan.                Pakistan                    Poland                  Tunisia                   U.S.A.                       UK           United Kingdom            United states           United States  united states of america           Univted states                       NA
##        22    6    5    4    4    4    2    2    2    2    2    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    1    0
## %      31  8.5    7  5.6  5.6  5.6  2.8  2.8  2.8  2.8  2.8  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4    0 
## %!NA   31  8.5    7  5.6  5.6  5.6  2.8  2.8  2.8  2.8  2.8  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4  1.4

## 
## Frequencies for use_nanoHub 
##         9   10   NA
##        44   26    1
## %      62 36.6  1.4 
## %!NA 62.9 37.1

## 
## Frequencies for use_any_nanoHub 
##         9   10   NA
##        37   34    0
## %    52.1 47.9    0 
## %!NA 52.1 47.9

## 
##    alexander.jin.pak@gmail.com           alqadi2@illinois.edu 
##                              1                              1 
##       biswapriyodas1@gmail.com            charmi@guilan.ac.ir 
##                              1                              1 
##       engrmkumailali@gmail.com               esakr@purdue.edu 
##                              1                              1 
##      fargi.abdelaali@gmail.com harshad.sahasrabudhe@gmail.com 
##                              1                              1 
##            kaimiao85@gmail.com           kisshore18@gmail.com 
##                              1                              1 
##             manas26t@gmail.com           mohamed@illinois.edu 
##                              1                              1 
##          nishant_bmw@yahoo.com        peter.woerner@gmail.com 
##                              1                              1 
##            r99941001@gmail.com         samueld1995@live.co.uk 
##                              1                              1 
##                  Sqazi@asu.edu            tafaltens@gmail.com 
##                              1                              1 
##         utharahari23@gmail.com         vahid@mail.ustc.edu.cn 
##                              1                              1 
##             vganapa@purdue.edu 
##                              1 
## < table of extent 0 >
## 
##                                      ECE 305 Lundstrom 
##                                                      1 
##                                       Gerhard Klimeck  
##                                                      1 
## Gerhard Klimeck Research Group Restricted Access Forum 
##                                                      4 
##  Gerhard Klimeck’s research group at Purdue University 
##                                                      1 
##                      https://nanohub.org/groups/mse235 
##                                                      1 
##                                           Mehedi Hasan 
##                                                      1 
##     MSE 260 Thermodynamics of Materials - 2015 Edition 
##                                                      1 
##                   MSE 270: Atomistic Materials Science 
##                                                      1 
##                                           nanoBIO Node 
##                                                      1 
## Description of dibbs1[con_var]

## Loading required package: MASS
## Loading required package: lattice
## 
## Attaching package: 'lattice'
## 
## The following object is masked from 'package:boot':
## 
##     melanoma
## 
## 
## Attaching package: 'nFactors'
## 
## The following object is masked from 'package:lattice':
## 
##     parallel

## Warning in fac(r = r, nfactors = nfactors, n.obs = n.obs, rotate = rotate,
## : A Heywood case was detected.  Examine the loadings carefully.

## Factor Analysis using method =  minres
## Call: fa(r = know_cr, nfactors = 2, n.obs = 71)
## 
##  Warning: A Heywood case was detected. 
## Standardized loadings (pattern matrix) based upon correlation matrix
##          item   MR1   MR2    h2     u2 com
## know_cr3    3  1.02 -0.04 0.990 0.0099 1.0
## know_cr5    5  0.70  0.13 0.602 0.3983 1.1
## know_cr6    6 -0.26  0.19 0.055 0.9454 1.9
## know_cr1    1 -0.11  0.88 0.694 0.3057 1.0
## know_cr4    4  0.38  0.60 0.734 0.2656 1.7
## know_cr2    2  0.37  0.49 0.565 0.4348 1.9
## 
##                        MR1  MR2
## SS loadings           2.04 1.60
## Proportion Var        0.34 0.27
## Cumulative Var        0.34 0.61
## Proportion Explained  0.56 0.44
## Cumulative Proportion 0.56 1.00
## 
##  With factor correlations of 
##     MR1 MR2
## MR1 1.0 0.5
## MR2 0.5 1.0
## 
## Mean item complexity =  1.4
## Test of the hypothesis that 2 factors are sufficient.
## 
## The degrees of freedom for the null model are  15  and the objective function was  2.8 0.3 with Chi Square of  187.86
## The degrees of freedom for the model are 4  and the objective function was  0.04 
##  0.3
## The root mean square of the residuals (RMSR) is  0.03 
## The df corrected root mean square of the residuals is  0.05 
##  0.3
## The harmonic number of observations is  71 with the empirical chi square  1.54  with prob <  0.82 
##  0.3The total number of observations was  71  with MLE Chi Square =  2.82  with prob <  0.59 
##  0.3
## Tucker Lewis Index of factoring reliability =  1.026
## RMSEA index =  0  and the 90 % confidence intervals are  NA 0.153 0.3
## BIC =  -14.23
## Fit based upon off diagonal values = 1
## Measures of factor score adequacy             
##                                                 MR1  MR2
## Correlation of scores with factors             1.00 0.91
## Multiple R square of scores with factors       0.99 0.83
## Minimum correlation of possible factor scores  0.98 0.66

## Warning in fac(r = r, nfactors = nfactors, n.obs = n.obs, rotate = rotate,
## : A Heywood case was detected.  Examine the loadings carefully.

## Factor Analysis using method =  minres
## Call: fa(r = dgi, nfactors = 2, n.obs = 71)
## 
##  Warning: A Heywood case was detected. 
## Standardized loadings (pattern matrix) based upon correlation matrix
##           item   MR1   MR2   h2    u2 com
## group.in3    3  1.05 -0.11 1.00 0.005 1.0
## group.in5    5  0.77  0.25 0.86 0.141 1.2
## group.in2    2  0.53  0.24 0.47 0.533 1.4
## group.in4    4 -0.06  0.99 0.93 0.073 1.0
## group.in1    1  0.39  0.64 0.82 0.183 1.6
## 
##                        MR1  MR2
## SS loadings           2.33 1.73
## Proportion Var        0.47 0.35
## Cumulative Var        0.47 0.81
## Proportion Explained  0.57 0.43
## Cumulative Proportion 0.57 1.00
## 
##  With factor correlations of 
##     MR1 MR2
## MR1 1.0 0.5
## MR2 0.5 1.0
## 
## Mean item complexity =  1.3
## Test of the hypothesis that 2 factors are sufficient.
## 
## The degrees of freedom for the null model are  10  and the objective function was  5.17 0.3 with Chi Square of  43.93
## The degrees of freedom for the model are 1  and the objective function was  0.92 
##  0.3
## The root mean square of the residuals (RMSR) is  0.06 
## The df corrected root mean square of the residuals is  0.18 
##  0.3
## The harmonic number of observations is  12 with the empirical chi square  0.77  with prob <  0.38 
##  0.3The total number of observations was  12  with MLE Chi Square =  6.59  with prob <  0.01 
##  0.3
## Tucker Lewis Index of factoring reliability =  -1.067
## RMSEA index =  0.91  and the 90 % confidence intervals are  0.265 1.216 0.3
## BIC =  4.1
## Fit based upon off diagonal values = 0.99
## Measures of factor score adequacy             
##                                                 MR1  MR2
## Correlation of scores with factors             1.00 0.97
## Multiple R square of scores with factors       1.00 0.94
## Minimum correlation of possible factor scores  0.99 0.88

## Factor Analysis using method =  minres
## Call: fa(r = benefit, nfactors = 2, n.obs = 71)
## Standardized loadings (pattern matrix) based upon correlation matrix
##        item   MR1   MR2   h2   u2 com
## rel2      8  0.97 -0.10 0.83 0.17 1.0
## rel3      9  0.94 -0.07 0.82 0.18 1.0
## rel4     10  0.86  0.03 0.78 0.22 1.0
## learn1   11  0.74  0.18 0.75 0.25 1.1
## rep3      6  0.63  0.20 0.60 0.40 1.2
## rep2      5  0.56  0.20 0.50 0.50 1.3
## rel1      7  0.48  0.40 0.63 0.37 1.9
## learn2   12 -0.04  0.85 0.69 0.31 1.0
## altru2    2 -0.11  0.85 0.61 0.39 1.0
## altru3    3  0.01  0.74 0.55 0.45 1.0
## altru1    1  0.15  0.71 0.66 0.34 1.1
## learn4   14  0.21  0.59 0.55 0.45 1.2
## learn3   13  0.14  0.53 0.39 0.61 1.1
## rep1      4  0.31  0.43 0.46 0.54 1.8
## 
##                        MR1  MR2
## SS loadings           4.75 4.07
## Proportion Var        0.34 0.29
## Cumulative Var        0.34 0.63
## Proportion Explained  0.54 0.46
## Cumulative Proportion 0.54 1.00
## 
##  With factor correlations of 
##      MR1  MR2
## MR1 1.00 0.63
## MR2 0.63 1.00
## 
## Mean item complexity =  1.2
## Test of the hypothesis that 2 factors are sufficient.
## 
## The degrees of freedom for the null model are  91  and the objective function was  12.84 0.3 with Chi Square of  828.43
## The degrees of freedom for the model are 64  and the objective function was  2.89 
##  0.3
## The root mean square of the residuals (RMSR) is  0.07 
## The df corrected root mean square of the residuals is  0.08 
##  0.3
## The harmonic number of observations is  71 with the empirical chi square  62.14  with prob <  0.54 
##  0.3The total number of observations was  71  with MLE Chi Square =  182.53  with prob <  2.5e-13 
##  0.3
## Tucker Lewis Index of factoring reliability =  0.766
## RMSEA index =  0.176  and the 90 % confidence intervals are  0.134 0.189 0.3
## BIC =  -90.28
## Fit based upon off diagonal values = 0.98
## Measures of factor score adequacy             
##                                                 MR1  MR2
## Correlation of scores with factors             0.98 0.95
## Multiple R square of scores with factors       0.95 0.91
## Minimum correlation of possible factor scores  0.90 0.82

## Warning in fac(r = r, nfactors = nfactors, n.obs = n.obs, rotate = rotate,
## : A Heywood case was detected.  Examine the loadings carefully.

## Factor Analysis using method =  minres
## Call: fa(r = risk, nfactors = 2, n.obs = 71)
## 
##  Warning: A Heywood case was detected. 
## Standardized loadings (pattern matrix) based upon correlation matrix
##         item   MR1   MR2   h2   u2 com
## lossIP1    1  1.00 -0.08 0.88 0.12 1.0
## lossIP2    2  0.93  0.00 0.87 0.13 1.0
## fear3      6  0.61  0.29 0.73 0.27 1.4
## fear1      4  0.56  0.31 0.69 0.31 1.6
## fear2      5  0.50  0.41 0.73 0.27 1.9
## lossIP3    3  0.40  0.32 0.47 0.53 1.9
## recipr1    7 -0.04  0.95 0.84 0.16 1.0
## recipr2    8  0.17  0.75 0.80 0.20 1.1
## 
##                        MR1  MR2
## SS loadings           3.54 2.47
## Proportion Var        0.44 0.31
## Cumulative Var        0.44 0.75
## Proportion Explained  0.59 0.41
## Cumulative Proportion 0.59 1.00
## 
##  With factor correlations of 
##      MR1  MR2
## MR1 1.00 0.78
## MR2 0.78 1.00
## 
## Mean item complexity =  1.4
## Test of the hypothesis that 2 factors are sufficient.
## 
## The degrees of freedom for the null model are  28  and the objective function was  7.98 0.3 with Chi Square of  530.86
## The degrees of freedom for the model are 13  and the objective function was  0.59 
##  0.3
## The root mean square of the residuals (RMSR) is  0.04 
## The df corrected root mean square of the residuals is  0.06 
##  0.3
## The harmonic number of observations is  71 with the empirical chi square  6.6  with prob <  0.92 
##  0.3The total number of observations was  71  with MLE Chi Square =  38.37  with prob <  0.00025 
##  0.3
## Tucker Lewis Index of factoring reliability =  0.889
## RMSEA index =  0.176  and the 90 % confidence intervals are  0.107 0.228 0.3
## BIC =  -17.05
## Fit based upon off diagonal values = 1
## Measures of factor score adequacy             
##                                                 MR1  MR2
## Correlation of scores with factors             0.98 0.96
## Multiple R square of scores with factors       0.95 0.92
## Minimum correlation of possible factor scores  0.91 0.84

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.